function out = highpass(x, fs, cutoff)

N = 8;
wn = (2*cutoff)/fs;
[B, A] = butter(N, wn,'high');

for i = 1:size(x,2)
out(:,i) = filtfilt(B,A,x);
end
